{extend name="public/common"}
{block name="body"}
<title>基本设置</title>
</head>
<style type="text/css">
	.text-c{
		margin-bottom: 35px;
	}
</style>
<body>

<div class="page-container">
    <div class="dataTables_wrapper" style="padding-bottom:0;">
        <div id="tab-system-total"  class="HuiTab">
            <div class="tabCon">
                <div class="mt-20">
          			
          			<div style="position: relative;">

          			

                    <div class="text-c" style="padding :20px 0;">
                        <form action="" method="post" class="l" style="margin-left:20px;">
                            日期选择
                            <input type="text" id="search" name="searchtime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'{$current}'})" value="{$searchtime}" class="input-text Wdate" style="width:120px;">
                            <button class="btn btn-success" type="submit" onclick="OpenSubmit()" style="margin-right:20px;"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
                        </form>
                    </div>
                    <script>
                   
                    </script>
                    <table class="table table-border table-bordered table-bg table-hover">
                        <thead>
                        <tr class="text-c">
                            <th></th>
                            <th>人数</th>
                        </tr>
                        </thead>
                        <tbody>
                        {foreach($list as $k=>$v)}
                        <tr class="text-c">
                            <td>
                                {switch name="$k"}
                                    {case value="zc"}新增注册{/case}
                                    {case value="ck"}新增存款{/case}
                                    {case value="app"}APP下载量{/case}
                                    {case value="sw"}试玩账户{/case}
                                    {case value="hj"}合计{/case}
                                    {default /}未知
                                {/switch}
                            </td>
                            <td>{if($k!='app')}<a href="javascript:;"  {if('hj'!=$k)} style="text-decoration:underline;" {/if}  onclick="showDetail('{$k}','{:url('Statistics/userStatistics')}?lab={$k}&search={$searchtime}')">{$v}</a>{else/}{$v}{/if}</td>
                        </tr>
                        {/foreach}
                        </tbody>
                </div>
            </div>
        </div>
    </div>
</div>
{/block}
{block name="js"}
<script type="text/javascript" src="__SYSMET__/common.js"></script>
<script type="text/javascript" src="__SYSMET__/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript">
    $(function() {
        $("#tab-system-total").Huitab({
            index: 0
        });
    });
    function showDetail( lab,url ){
        if( 'hj'==lab ){
            return false;
        }
        parent.showDetails(url,lab,'500px','600px');
    }
</script>
{/block}
